<?php
class goodsController extends base{
    public function __construct($type='api')
    {
        parent::__construct($type);
    }

    /*
     * 商品详情
     */
    public function goodsInfo(){
        $goods_id = common::request('goods_id','R');
        if(!$goods_id){
            $_ENV['error']->getErrors(101);
            exit;
        }
        
        $this->result['result'] = $this->load('goods')->getGoodsById($goods_id);
    }
}